<template>
	<view class="header-box">
		<view class="my-header">
			<my-nmy v-if="!token"></my-nmy>
			<my-my v-else></my-my>
		</view>
	</view>
</template>
<script>
	import my from '../../components/my/my.vue'
	import nmy from "../../components/my/nmy.vue"
	export default {
		components: {
			"my-my": my,
			'my-nmy': nmy
		},
		data() {
			return {
				token: '',
			}
		},
		methods: {
		},
		onShow() {
			let token = uni.getStorageSync('_token')
			this.token = token
			// console.log(this.token);	
		}
	}
</script>

<style lang="scss">
	page {
		height: 100%;
		background-color: #efefef !important;
	}
	.header-box {

		.my-header {
			width: 100%;
			background-image: url('../../static/image/user_bg.png');
			background-repeat: no-repeat;
			background-size: 100% 300px;
			// margin:5px 6px;
		}
	}
</style>
